package com.power.ding.api;

import com.plf.common.domain.ResponseDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import com.power.ding.model.Di_dept;
import com.power.ding.model.pageInfo.Di_deptPageInfo;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  部门信息 Feign
 */
public interface IDi_deptFeign {

    /**
     * 部门信息分页列表
     */
    @PostMapping("/di_dept/list")
    ResponseDTO list(@RequestBody Di_deptPageInfo di_deptPageInfo);

    /**
    * 查看部门信息
    */
    @GetMapping("/di_dept/view")
    ResponseDTO view(@RequestParam("id") String id);

    /**
    * 删除部门信息
    */
    @PostMapping("/di_dept/delete")
    ResponseDTO delete(@RequestParam("id") String id);

    ///**
    // * 查看部门信息 复合主键使用
    // */
    //@PostMapping("/di_dept/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Di_dept.Di_deptPK pk);

    /**
     * 修改或保存部门信息
     */
    @PostMapping("/di_dept/save")
    ResponseDTO save(@RequestBody Di_dept  di_dept);

    ///**
    // * 删除部门信息 复合主键使用
    // */
    //@PostMapping("/di_dept/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Di_dept.Di_deptPK pk);
    
    /**
     * 批量删除部门信息
     */
    @PostMapping("/di_dept/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);
    
     /**
     * 导出excel
     */
    @PostMapping("/di_dept/output")
    void output(HttpServletResponse response, @RequestBody Di_deptPageInfo di_deptPageInfo);
        
     /**
     * 导出excel模板
     */
    @PostMapping("/di_dept/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);
    
     /**
     *	导入excel
     */
    @PostMapping("/di_dept/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException ;


}
